<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js" type="text/javascript" charset="UTF-8"></script>

</head>

<body>
    <div id="root">
        <h1>插值语法</h1>
        <h3>你好,{{name}}</h3>
        <hr />
        <h1>
            指令语法
        </h1>
        <a v-bind:href="url">点我百度</a>
        <a :href="url" x="hello">点我百度</a>
    </div>

    <div id="root2">
        <h1>你好,{{name}}</h1>
    </div>

    <script type="text/javascript">

        new Vue({
            el: '#root',
            data: {
                name: '张三',
                url: 'http://www.baidu.com'
            }
        })

        new Vue({
            el: '#root2',
            data: {
                name: '张三',
                name: '李四'
            }
        })


    </script>
</body>

</html>